<?php
/**
* 사용자 팝업 출력 로직파일
* /contents/popup/index.php
* 2008-05-19
* hamhaja <hamhaja@nextez.co.kr>
**/
// check logic include
if (!isset($is_logic_include)) include_once  '../../../common/inc.header.php';

// check parameter
$seq = $App->nvl('seq');
settype($seq, 'integer');
if (!$seq) g_notice(WRONG_PARAMETER, 'seq is empty');

// class instance
$App->class_require('Table.Popup');
$Popup = new Popup(&$Db, 'IDX');

// set popup record
if ($popup_record = & $Popup->get_popup($seq))
{
	// set template
	$tpl = '/popup/' . $popup_record['po_skin'] . '.htm';

	// check logic include
	if (!isset($is_logic_include))
	{
		if ($tpl) include_once $App->_dir_agency.'/template' . $tpl;
		require_once $App->_dir_root . '/common/inc.footer.php';
	}
}
else g_notice(NOT_FIND_DATA, false);
?>
